package com.kk.init;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author: kevin
 * @data: 2018-08-16 09:07
 */
@Component

public class MyCommandLineRunner implements CommandLineRunner {

    private static final Logger logger = LoggerFactory.getLogger(MyCommandLineRunner.class);

    @Override
    public void run(String... strings) throws Exception {
        logger.info("===服务启动后，执行加载数据等操作===");
    }
}
